﻿import request from '@/utils/request';
// list
export const suguanxinxiList = (params) => {
    return request({
        url: '/suguanxinxi/page',
        method: 'post',
        data: params,
    })
};
export const suguanxinxiDetail = (id) => {
    return request({
        url: '/suguanxinxi/'+id,
        method: 'get',
    })
};
export const getByzhujian = (zhujian) => {
    return request({
        url: '/suguanxinxi/getByzhujian/'+zhujian,
        method: 'get',
    })
};
// add
export const suguanxinxiSave = (params) => {
    return request({
        url: '/suguanxinxi',
        method: 'post',
        data: params,
    })
};
// updt
export const suguanxinxiEdit = (params) => {
    return request({
        url: '/suguanxinxi',
        method: 'put',
        data: params,
    })
};
export const suguanxinxiEditByzhujian = (params) => {
    return request({
        url: '/suguanxinxi/updateByzhujian',
        method: 'put',
        data: params,
    })
};
// delete
export const suguanxinxiDelete = (id) => {
    return request({
        url: '/suguanxinxi/'+id,
        method: 'delete',
    })
};
// pldel
export const suguanxinxiDeleteList = (suguanxinxis) => {
    return request({
        url: '/suguanxinxi/deleteList',
        data:{list:suguanxinxis},
        method: 'post',
    })
};
// all
export const suguanxinxiAllList = () => {
    return request({
        url: '/suguanxinxi',
        method: 'get',
    })
};
export const suguanxinxiUpdatePassword = (params) =>{ return request({ url: `/suguanxinxi/updatePassword`, method: 'put',data: {...params,mima:params.password}, })};
